<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<head>
  <jsp:include page="head.jsp"></jsp:include>
    </head>
	<body style="margin:0;padding:0;height:100%;overflow:hidden;background:#F2FBFF">
  			<div id="mainlayout" class="easyui-layout" fit="true">
			<div region="north" border="false">
				<div class="toolbar">
					<table cellpadding="0" cellspacing="0" style="width:95%;height=30px;">
						<tr>
							<td> 
								<a href="javascript:approveItem()" class="easyui-linkbutton" iconCls="icon-add" plain="true">下发</a>
								<a href="javascript:editItem()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
								<a href="javascript:removeItem()" class="easyui-linkbutton" iconCls="icon-cancel" plain="true">删除</a>
								<a href="javascript:back()" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>
							</td>
							<td style="text-align:right">
								<a href="javascript:advanceQuery()" class="easyui-linkbutton" plain="true">高级查询</a>
							 </td>
						</tr>
					</table>
				</div>
			</div>
			<div region="center" border="false">
				<table id="dt-Release" class="easyui-datagrid"
						url="<c:url value='/release/getItemsRelease.tg?release.adverstate=adverstate103'/>"
						fit="true" border="false" 
						pagination="true" 						
						singleSelect="true" rownumbers="true">
					<thead>
						<tr>
							<th field="title"  width="110px"    sortable="true">广告标题</th>
							<th field="advertype"  width="90px" sortable="true" formatter="statusFormatter">广告所属类型</th> 
							<th field="price"  width="50px" sortable="true">价格</th>
							<th field="releasepattern"  width="90px" sortable="true" formatter="releaseFormatter">发布方式</th>
							<th field="phone"  width="100" sortable="false">广告商家电话</th>
							<th field="address" width="150" sortable="false">商家地理位置</th>
							<th field="coordinate" width="200" sortable="false">商家地理位置坐标</th>
							<th field="pidouid"  width="120" sortable="false">广告商家皮豆ID</th>
							<th field="externaluri" width="200" sortable="false">广告商家网址</th>
						</tr>
					</thead>
				</table>
			</div>
		<div id="dlg" class="easyui-dialog" style="width:1000px;height:500px;"
				closed="true" modal="true" buttons="#dlg-buttons">
			<form id="myform" method="post" >
				<jsp:include page="_form.jsp"></jsp:include>
			</form>
			<div id="dlg-buttons" style="text-align:center">
				<a  href="#" class="easyui-linkbutton"  iconCls="icon-ok" onclick="saveItem()">提交</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
			</div>
		</div>
		<div id="auth" class="easyui-dialog" style="width:350px;height:250px;"
				closed="true" modal="true" buttons="#auth-buttons">
			<form id="authorization" method="post">
				<ul id="tt"></ul>
			</form>
			<div id="auth-buttons" style="text-align:center">
				<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="saveAuthorizate()">保存</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#auth').dialog('close')">关闭</a>
			</div>
		</div>
		<div id="ac" class="easyui-dialog" style="width:900px;height:500px;"
				closed="true" modal="true" buttons="#actions-buttons">
			<form id="actions" method="post">
				<div id="resActions"></div>
			</form>
			<div id="actions-buttons" style="text-align:center">
				<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="saveResActions()">保存</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#ac').dialog('close')">关闭</a>
			</div>
		</div>
		<div id="detail" class="easyui-dialog" style="width:350px;height:430px;"
				closed="true" modal="true" buttons="#detail-buttons">
			<form id="detailform" >
				<%-- <jsp:include page="_detail.jsp"></jsp:include> --%>
			</form>
			<div id="detail-buttons" style="text-align:center">
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#detail').dialog('close')">关闭</a>
			</div>
		</div>
	</div>
</body>